package ooday01;

/** 学生类的测试 */
public class StudentTest {
    public static void main(String[] args) {
        //创建对象
        Student zs = new Student();


        zs.name = "张三";
        zs.age = 20;
        zs.className = "jsd2302";
        zs.stuId = "001";
        zs.study();
        zs.sayHi();
        zs.play("李四");

        Student ls = new Student();
        ls.name = "李四";
        ls.age = 23;
        ls.stuId = "002";
        ls.className = "jsd2302";
        ls.study();
        ls.sayHi();
        ls.play("张三");
        //1)创建了一个学生对象
        //2)给所有成员变量赋默认值
        Student ww = new Student();
        ww.study();
        ww.sayHi();
        ww.play("李四");
    }
}
